package main

import (
	"Lib/Function"
	"Modules/Admin/Controller"
	"Modules/Api/Controller"
	"fmt"
	"github.com/gin-gonic/gin"
)

func RegisterRouter(r *gin.Engine) {
	ApiController.RegisterRouter(r)
	AdminController.RegisterRouter(r)
	LibFunction.RegisterRouter(r)
}

func main() {

	fmt.Println(LibFunction.StringAdd("105"))

	//gin.SetMode(gin.ReleaseMode)
	r := gin.Default()
	r.Static("/static", "static")
	r.LoadHTMLGlob("views/**/*")
	RegisterRouter(r)
	r.Run("0.0.0.0:10020")
}
